<html>
<head><meta charset="utf-8"><title>Executables for Unikernel OS · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Executables.20for.20Unikernel.20OS.html">Executables for Unikernel OS</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="225724182"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Executables%20for%20Unikernel%20OS/near/225724182" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Wood <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Executables.20for.20Unikernel.20OS.html#225724182">(Feb 09 2021 at 17:17)</a>:</h4>
<p>Apologies if this the wrong channel to ask this, but I'm working on porting the Rust standard library to a fairly obscure Unikernel OS. For library crates this is currently working well, as I have the compiler produce a staticlib which I then link with the OS when that builds. However, this approach doesn't currently work with binary crates, as they seem to be self contained and so produce many link errors when compiling. Would it be possible for me to have binary crates produce a staticlib, with some defined entry point that would eventually call the main method, or is there some other approach that might work for this? I'd prefer not to have to build the OS within Rust, which I believe is what Hermit does.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>